<!--
<ion-view title="密码重置">
    <ion-content class="padding">
        <p>Banging your head against a wall uses 150 calories an hour.</p>
        <p>Dogs have four toes on their hind feet, and five on their front feet.</p>
        <p>The ant can lift 50 times its own weight, can pull 30 times its own weight and always falls over on its right side when intoxicated.</p>
        <p>A cockroach will live nine days without it's head, before it starves to death.</p>
        <p>Polar bears are left handed.</p>
        <p>
            <a class="button icon ion-home" href="#/tab/dash"> Home</a>
            <a class="button icon icon-right ion-chevron-right" href="#/tab/reset">More Facts</a>
        </p>



    </ion-content>
</ion-view>
-->


<ion-view title="密码重置">
    <ion-nav-bar class="bar-stable nav-title-slide-ios7  bar-positive">
        <ion-nav-back-button class="button-icon ion-nav-back-button " style="font-weight: 700;font-size: 14px;width: 70px;background-image: url('./img/back.png');background-size: 70px 32px;background-repeat:no-repeat;">
            &nbsp;&nbsp;&nbsp;返回
        </ion-nav-back-button>
    </ion-nav-bar>
    <ion-content has-header="true" has-tabs="true"  has-bouncing="true" overflow-scroll="false" style="color: #4C86B4;background-color: #E9F3FC;">
        <form name="userForm" ng-submit="resetPassword()">
            <!--<div class="list list-inset"  >
                <label class="item item-input item-stacked-label">
                    <span class="input-label">请输入当前密码</span>
                    <input type="password" placeholder="******">
                </label>
                <label class="item item-input item-stacked-label">
                    <span class="input-label">请输入新密码</span>
                    <input type="password" placeholder="******">
                </label>
                <label class="item item-input item-stacked-label">
                    <span class="input-label">请再次输入新密码</span>
                    <input type="password" placeholder="******">
                </label>
            </div>-->

            <div class="list list-inset" style="background-color: #E9F3FC;">
                <label>请输入当前密码：</label>
                <label class="item item-input" for="op">
                    <input type="password" id="op" name="op" ng-model="user.op" placeholder="******" required>
                </label>
               <!-- <p ng-show="userForm.op.$invalid && !userForm.op.$pristine" class="help-block">密码长度不对</p>-->
            </div>
            <div class="list list-inset" style="background-color: #E9F3FC;">
                <label>请输入新密码：</label>
                <label class="item item-input" for="np">
                    <input type="password" id="np" name="np" ng-model="user.np" placeholder="******" ng-minlength="6" ng-maxlength="20" required>
                </label>
                <p ng-show="userForm.np.$error.minlength" class="help-block" style="color: red">密码长度不能小于6位</p>
                <p ng-show="userForm.np.$error.maxlength" class="help-block" style="color: red">密码长度不能大于20位</p>

               <!-- <label>Username</label>
                <input type="text" name="username" class="form-control" ng-model="user.username" ng-minlength="3" ng-maxlength="8">
                <p ng-show="userForm.username.$error.minlength" class="help-block">Username is too short.</p>
                <p ng-show="userForm.username.$error.maxlength" class="help-block">Username is too long.</p>
-->

            </div>
            <div class="list list-inset" style="background-color: #E9F3FC;">
                <label>请再次输入密码：</label>
                <label class="item item-input" for="np1">
                    <input type="password" id="np1" name="np1" ng-model="user.np1" placeholder="******" ng-minlength="6" ng-maxlength="20" required>
                </label>
                <p ng-show="userForm.np1.$error.minlength" class="help-block" style="color: red">密码长度不能小于6个字符</p>
                <p ng-show="userForm.np1.$error.maxlength" class="help-block" style="color: red">密码长度不能大于20个字符</p>
                <p class="help-block" style="color: red">{{msg}}</p>
            </div>
            <div class="padding" style="padding-top: 30px">
                <!--<a>--><!-- href="#/tab/items"-->
                    <button type="submit"  class="button button-block button-energized" ng-disabled="userForm.$invalid"><!---->
                        确定
                    </button>
                <!--</a>-->
            </div>
        </form>
    </ion-content>

 <!--   <div class="content has-header">
        <div class="list list-inset">
            <label class="item item-input">
                <input type="text" placeholder="First Name">
            </label>
            <label class="item item-input">
                <input type="text" placeholder="Last Name">
            </label>
        </div>
        <div class="padding">
            <button class="button button-block button-positive">Submit</button>
        </div>
    </div>
    </div>-->


</ion-view>